;(function ($) {
	$.extend($.jqValidator,{
		/**---------------------------------------------------------------------------pwdSecurity**/
		//密码强度规则 初始化
		init_pwdSecurity : function(validateRules){
			var $this = this; 
			$this.data($.jqValidator.validateMsgKey,
					$.extend({},$this.data($.jqValidator.validateMsgKey),
							{pwdSecurity:{msg:"",show:false}}
					)
				);
		},
		//密码强度校验
		pwdSecurity : function(validateRules){
			var $this = this;
			if($this.val().length > 0 && $this.val().length <= 3){
				$('#firstLevel').html('1级强度<img src="'+App.ctx+'/images/icon/del.gif"/>');
			}else{
				$('#firstLevel').html('');
			}
			
			if($this.val().length > 3 && $this.val().length <= 6){
				$('#secondLevel').html('2级强度<img src="'+App.ctx+'/images/icon/del.gif"/>');
			}else{
				$('#secondLevel').html('');
			}
			
			if($this.val().length > 6 && $this.val().length <= 9){
				$('#thirdLevel').html('3级强度<img src="'+App.ctx+'/images/icon/del.gif"/>');
			}else{
				$('#thirdLevel').html('');
			}
			return true;
		}
		/**---------------------------------------------------------------------------end pwdSecurity**/
		
	});
})(jQuery);

$(window).ready(function(){
	//初始化控件验证规则
	$.jqValidator.initValidateRules("#form1");
	//打开校验规则的提示
	$.jqValidator.setIsShowValidateMsg("#form1",true)
	
	$('#aDiv1').click(function(){
		$('#div1').attr('title',i18n.message.msg).dialog($.extend({},dialogConfig,{width:"1090",height:"500"}));
	});
});
